import turtle
import time

turtle.speed(10)  #速度

turtle.up()
turtle.goto(-200, 200)  #去坐标点
turtle.down()
turtle.fillcolor("red")
turtle.color("red")

turtle.begin_fill()  #填充图形
turtle.forward(480)
turtle.right(90)
turtle.forward(320)
turtle.left(90)
turtle.backward(480)
turtle.right(90)
turtle.backward(320)
turtle.end_fill()

turtle.up()
turtle.forward(64)
turtle.left(90)
turtle.forward(32)
turtle.down()

# 大五角星
a = 96
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
turtle.begin_fill()
for i in range(1, 6):
    turtle.forward(a)
    turtle.right(144)
    turtle.speed(2)
turtle.end_fill()

turtle.up()

turtle.forward(96) # 移动到五角星右顶点
turtle.left(53) # 向左边转动
turtle.forward(36)
turtle.down()

# 第一个小五角星
a = 32
turtle.begin_fill()
for i in range(1, 6):
    turtle.forward(a)
    turtle.right(144)
    turtle.speed(5)
turtle.end_fill()

turtle.up()
turtle.right(80)
turtle.forward(42)
turtle.left(55)

# 第二个小五角星
a = 32
turtle.begin_fill()
for i in range(1, 6):
    turtle.forward(a)
    turtle.right(144)
    turtle.speed(5)
turtle.end_fill()

turtle.up()
turtle.right(96)
turtle.forward(32)

# 第三个小五角星
a = 32
turtle.begin_fill()
for i in range(1, 6):
    turtle.forward(a)
    turtle.right(144)
    turtle.speed(5)
turtle.end_fill()

turtle.up()
turtle.right(54)
turtle.forward(45)
turtle.right(30)

# 最后一个小五角星
a = 32
turtle.begin_fill()
for i in range(1, 6):   #循环5次（五个角）
    turtle.forward(a)
    turtle.right(144)
    turtle.speed(2)
turtle.end_fill()  #调用上次形状
turtle.ht()
time.sleep(10)  #保持10秒

